I. Data Types(Data type):
Perl has four data types: Scalar (variable), Scalar Array (Array), Hash Array (Hash), and References (pointer ), it seems to be rare, but it is more than enough to use it. Especially when writing Perl programs, you do not
Introduction to Perl Operators
1. Perl Operators
1.1 Arithmetic Operators
Perl is similar to C in both variables and data examples, but its operators and C are almost the same, except for C's example conversion operator type, pointer Reference
Introduction to Perl Syntax Perl operators
1.Perl operator
1.1 Arithmetic operators
Perl is very different in variables and data paradigms and C. However, its operator and C are almost identical, except for the example conversion operator type of
I have to say that perl and php are two very similar languages. For php students like me, it is easy to learn perl. Here are some differences between perl and php: variables: The Integer Variables on perl are actually stored in the floating-point
1. Simple Variables
==============
1. Integer$ X = 123456;Perl stores integer data in floating-point registers. In fact, integer variables are treated as floating-point numbers in Perl, but they are only a special column of floating-point data.The
Increment decrement operator
Before increment ++++ $a $ A increments by 1 and then returns $ A
After increment + + + $a first return $ A, then $ A since 1
Before decrement----$a $ A self minus 1 and then return $ A
After decrement--$a--returns $ A,
Transferred from: http://bbs.chinaunix.net/thread-1191868-1-1.html#
To make your Perl code look more like Perl code than a C or basic code, the best thing to do is to understand the built-in variables of Perl. These built-in variables
One, arithmetic operators* *: is a power result cannot exceed a range when the exponent is a decimal, the base cannot be a negative number%: The number of operands on both sides of the remainder is an integer, if not to intercept, to remove all the
While learning Perl, Python, and shell scripts can easily confuse their syntax, this article is primarily a personal summary that facilitates the use of queries.Perl basic syntax, installation, help documentation
File Header format: #
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.